#!/bin/bash
xxx=(1 2 3)
for i in ${xxx[@]}
do
  echo $i
done 

echo "==========="
echo ${xxx[0]}
echo ${xxx[1]}
echo ${xxx[2]}
echo "number: "${#xxx[*]}
